<%-- 
    Document   : cad_procedimento
    Created on : May 13, 2012, 12:35:20 PM
    Author     : cleber
--%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>    
    <style type="text/css">
            @import url("estilo_adm.css");
    </style> 
    <link rel="stylesheet" href="menu/menu.css" type="text/css" media="all" charset="utf-8" />
    <link rel="stylesheet" href="menu/Menu2.css" type="text/css" media="screen" charset="utf-8" />
    <!--[if lt IE 7]>
            <link rel="stylesheet" href="menu/Menu3.css" type="text/css" media="screen" charset="utf-8" />
    <![endif]-->    
</head>
<body>    
<!--MENU -->
	<div id="top_acima_banner_adm">
		<ul id="nav" name="nav">						
			<li><a href="#"><span class="style_menu_dinamico_adm"><strong>[+] MENU</strong></span></a>
				<ul>
					<li><a href="adm.jsp"><span class="style_menu_dinamico_adm">Home</span></a></li>
					<li><a href="#"><span class="style_menu_dinamico_adm">Cadastros</span></a>
						<ul>
                                                    <li><a href="cad_paciente.jsp"><span class="style_menu_dinamico_adm">Paciente</span></a></li>
                                                    <li><a href="controller?action=AgendarAtendimento"><span class="style_menu_dinamico_adm">Atendimento</span></a></li>
                                                    <li><a href="cad_procedimento.jsp"><span class="style_menu_dinamico_adm">Procedimento</span></a></li>
						</ul>
						</li>									
					<li><a href="#"><span class="style_menu_dinamico_adm">Consultas</span></a>
						<ul>
                                                    <li><a href="controller?action=ListarPaciente"><span class="style_menu_dinamico_adm">Paciente</span></a></li>
                                                    <li><a href="controller?action=ListaAgendarAtendimento"><span class="style_menu_dinamico_adm">Atendimento</span></a></li>
                                                    <li><a href="controller?action=ListaProcedimento"><span class="style_menu_dinamico_adm">Procedimento</span></a></li>
                                                    <li><a href="controller?action=ListaFaturamentoMes"><span class="style_menu_dinamico_adm">Faturamento</span></a></li>
						</ul>
						</li>
					<li><a href="#"><span class="style_menu_dinamico_adm">Extra</span></a>
						<ul>
							<li><a href="opa.php"><span class="style_menu_dinamico_adm">Altera Senha</span></a></li>
						</ul>
						</li>																		
					<li><a href="LogoutSistemaAction"><span class="style_menu_dinamico_adm">Logout</span></a></li>																	
				</ul>
			</li>

		</ul>		
		<table border="0" width="1020">
			<tr>
				<td width="88%">&nbsp;</td>
				<td width="6%"><a href="adm.jsp" title="Ir para a Página Principal"><img src="img_est/home48x48.png" width="48" height="48" border="0" /></a></td>
				<td width="6%"><a href="LogoutSistemaAction" title="Sair do Sistema"><img src="img_est/cancela48x48.png" width="48" height="48" border="0" /></a></td></tr>							
		</table>		
	</div>
<!--MENU -->


<div id="tudo">    
        <div id="top_adm_voltar"><a href='javascript:history.back()'>VOLTAR</a></div>
        <!--<div id="top_adm_login">Logado como: ${sessionScope.usuario.login} </div> -->

        <div id="top_adm"><br /></div>
        <div id="logo_adm">
            <div align="center"><img src="img_est/logo_cliente.jpg" width="200" height="140" border="0" /></div>
        </div>
        <!-- -->
        
	<div id="central_form_adm">
		<span class="style1">
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
		  <tr>
			<td colspan="3" bgcolor="#F7FAF5"><div align="center">
			  <div>
				<table width="983" border="0" bgcolor="#FFFFFF">
				  <tr>
					<td colspan="4"><div align="left"><img src="img_est/cadastro.png" width="176" height="32" /></div></td>
					</tr>
                                <c:if test="${requestScope.e.descricao == null}">
				  <tr>
					<td colspan="3" bgcolor="#7F7E7E"><div align="left"><span class="style_titulo_menu"> PROCEDIMENTO </span></div></td>
					</tr>
                                </c:if>                                        
                                <c:if test="${requestScope.e.descricao != null}">
				  <tr>
					<td colspan="3" bgcolor="#7F7E7E"><div align="left"><span class="style_titulo_menu"> ALTERAR PROCEDIMENTO </span></div></td>
					</tr>
                                </c:if> 
				  <tr>                                  
					<td colspan="3">&nbsp;</td>
					</tr>
                                <tr>
                                    <td colspan="4" bgcolor="#F7FAF5" align="center">${requestScope.msg}</td>
                                </tr>                                        
                                        
				  <tr>                                  
					<td colspan="3">&nbsp;</td>
					</tr>

				  <!-- INICIO FORMULARIO -->
                                <c:if test="${requestScope.e.descricao == null}">
                                    <form name="form1" action="controller?action=SalvaProcedimento" method="POST">
                                </c:if>                                        
                                <c:if test="${requestScope.e.descricao != null}">
                                    <form name="form1" action="controller?action=ConfirmaAlterarProcedimento&idProcedimento=${requestScope.e.idProcedimento}" method="POST">
                                </c:if>                                   
				  
				  <tr>
					<td width="20%"><div align="left"><span class="style20">DESCRIÇÃO</span></div></td>
					<td width="70%" ><label>
					  <div align="left"><input name="cpdescricao" type="text" id="cpdescricao" size="90" maxlength="110" value="${requestScope.e.descricao}" /> </label></td>
					<td width="10%">&nbsp;</td>
				  </tr>

				  <tr>
					<td width="20%"><div align="left"><span class="style20">VALOR</span></div></td>
					<td width="70%" ><label>
					  <div align="left"><input name="cpvalor" type="text" id="cpvalor" size="90" maxlength="110" value="${requestScope.e.valor}" /> </label></td>
					<td width="10%">&nbsp;</td>
				  </tr>

                                  
                                <c:if test="${requestScope.e.descricao == null}">
                                    <tr>
                                            <td>&nbsp;</td>
                                            <td><div align="center">
                                            <input type="submit" name="button" id="button" value="CADASTRAR" />
                                            </div></td>
                                            <td colspan="2">&nbsp;</td>
                                            </tr>
                                    <tr>
                                            <td colspan="4">&nbsp;</td>
                                    </tr>
                                                                              
                                    <tr>
                                            <td colspan="3">
                                                <div align="center">
                                                    <a href="ListaProcedimentoAction"> VER LISTA/ALTERAR</a>
                                                    <!--

                                                    <iframe src="cadPacienteLista" width="950" height="300" frameborder="0"></iframe>
                                                    -->
                                                </div>
                                            </td>    
                                    </tr>                                        
                                </c:if>
                                <c:if test="${requestScope.e.descricao != null}">
				  <tr>
					<td>&nbsp;</td>
					<td><div align="center">
					  <input type="submit" name="button" id="button" value="ALTERAR" />
					</div></td>
					<td colspan="2">&nbsp;</td>
					</tr>
                                    <tr>
                                            <td colspan="4">&nbsp;</td>
                                    </tr>
                                                                              
                                    <tr>
                                            <td colspan="3">
                                                <div align="center">
                                                    <a href='javascript:history.back()'>CANCELAR</a>
                                                </div>
                                            </td>    
                                    </tr>                                            
                                </c:if>                                        
                                        
				  </form>	
				  <!-- FINAL FORMULARIO -->

                                  
				  <tr>
					<td colspan="4">&nbsp;</td>
				  </tr>
				</table>
			  </div>
			</div></td>
		  </tr>
		</table>
		</span>
	</div>
</div>                                                
</body>
</html>
